import service from "@/api/index.js";

const commentApi = {
    insert(comment) {
        return service.post("/comment",comment)
    },
    delete(id){
        return service.delete(`/comment/${id}`)

    },
    selectByCondition(condition){
        return service.get("/comment/all",{
            params:condition
        })
    },
    selectById(id) {
        return service.get(`/comment/${id}`)
    }

}
export default commentApi;